package com.wlc.oop.demo11;

/**
 * @author 王立朝
 * @date 2022/11/22
 * @description:
 */
public class Son extends Father{

    private int i = test(); //5  //8
    private static int j = method();//3

    static {

        System.out.println("(6)");//4
    }
    Son(){
        System.out.println("(7)");//10
    }

    {
        System.out.println("(8)");//9
    }

    public int test(){
        System.out.println("(9)");
        return 1;
    }

    public static int method(){
        System.out.println("(10)");
        return 1;
    }

    public static void main(String[] args) {
        Son s1 = new Son();

    }
}
